﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>${kw}_商品搜索_盖帽网</title>
<link rel="icon" href="resources/images/favicon.ico" type="image/x-icon" />
<link href="resources/css/all.css" rel="stylesheet" type="text/css" />
<link href="resources/css/result.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="resources/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="resources/js/search.js"></script>
<style type="text/css"></style>
</head>
<body>
	<div id="header">
		<div id="search_bar-s">
			<div id="logo_s">
				<a href="./"><img src="resources/images/logo_s.png"> </a>
			</div>
			<div id="search-fields-s">
				<form action="search" target="_top" id="search-form" method="get">
					<div class="input-bg-s">
						<input type="text" name="kw" class="input-txt" id="search-kw-s" autocomplete="off" value="${kw}">
						<input type="hidden" name="page" value="1">
						<input type="hidden" name="sorter" value="1">
					</div>
 						<input type="submit" value="" id="search-btn-s">
				</form>
			</div>
		</div>
	</div>
	<div id="content-s">
		<div id="content">
			<div id="base_filter_list">
				<div id="cata_filter">
					<div class="base_filter_title">
						<span>分类筛选</span>
					</div>
					<div class="base_filter_list">
						<ul>
							<c:forEach var="type_list_e" items="${rp.type_list}">
								<li><a href="${type_list_e.url}" ${type_list_e.style}>${type_list_e.name}(${type_list_e.amount})</a>
							</c:forEach>
						</ul>
						<c:if test="${!empty rp.type_list_hide}">
							<div class="more">
								<a class="more-btn">更多分类 &gt</a>
								<ul class="hidden" ${rp.type_list_hide_css}>
									<c:forEach var="type_list_hide_e" items="${rp.type_list_hide}">
										<li><a href="${type_list_hide_e.url}" ${type_list_hide_e.style}>${type_list_hide_e.name}(${type_list_hide_e.amount})</a>
									</c:forEach>
								</ul>
							</div>
							<div style="clear:both"></div>
						</c:if>
					</div>
				</div>
				<div id="shop_filter">
					<div class="base_filter_title">
						<span>筛选商家</span>
					</div>
					<div class="base_filter_list">
						<ul>
							<c:forEach var="source_list_e" items="${rp.source_list}">
								<li><a href="${source_list_e.url}" ${source_list_e.style}>${source_list_e.cn_name}(${source_list_e.amount})</a>
							</c:forEach>
						</ul>
						<c:if test="${!empty rp.source_list_hide}">
							<div class="more">
								<a class="more-btn">更多分类 &gt</a>
								<ul class="hidden" ${rp.source_list_hide_css}>
									<c:forEach var="source_list_hide_e" items="${rp.source_list_hide}">
										<li><a href="${source_list_hide_e.url}" ${source_list_hide_e.style}>${source_list_hide_e.cn_name}(${source_list_hide_e.amount})</a>
									</c:forEach>
								</ul>
							</div>
							<div style="clear:both"></div>
						</c:if>
					</div>
				</div>
			</div>
			<div id="result_content">
				<div id="adv_filter_list" class="adv_filter_list_fixed">
					<div>
						<div id="brand">品牌：</div>
						<div id="brand-detail">
							<ul>
								<c:forEach var="brand_list_e" items="${rp.brand_list}">
									<li><a href="${brand_list_e.url}" ${brand_list_e.style}>${brand_list_e.name}(${brand_list_e.amount})</a>
								</c:forEach>

							</ul>
						</div>
						<div id="brand-more">
						  	<c:if test="${fn:length(rp.brand_list)>10}">		
								<a>更多品牌 &gt</a>
							</c:if>
						</div>
					</div>
					<div class="clear"></div>
				</div>
				<div id="range_content">
					<div id="range">
						${rp.sorter_url_1 }${rp.sorter_url_2 }
					</div>
					<div id="result_info">
						<span>您在搜索:</span><span class="red-span">${kw}</span>&nbsp;&nbsp;&nbsp;<span>共找到商品个数:</span><span class="red-span">${rp.length}</span>&nbsp;&nbsp;&nbsp;<span>用时:</span><span class="red-span">${rp.time}</span><span>毫秒</span>
					</div>
				</div>
				<div id="detail_content">
					<c:forEach var="detail_list_e" items="${rp.detail_list}" varStatus="status">
						<ul class="product">
							<li class="pic"><a  target=_blank href="${detail_list_e.url}"><img
									src="${detail_list_e.pic_url}" /> </a>
							</li>
							<li class="title"><a target=_blank href="${detail_list_e.url}">${detail_list_e.name}</a></li>
							<li class="price">参考价<span class="price_num">${detail_list_e.price}</span>
							</li>
							<li class="sum-shop"><a target=_blank href="${detail_list_e.url}">共${detail_list_e.shop_amount}个商家</a><a  target=_blank href="${detail_list_e.url}" class="btn-c">去比较</a>
							</li>
						</ul>
						<c:if test="${status.count%4==0}">		
							 <div class="split clear"></div>
						</c:if>	
					</c:forEach>
				</div>
				<div id="page-link-content">
				
				
					${pagelink}
	
				</div>
			</div>


		</div>
	</div>
	<div id="footer">
		<div id="info">
			<a href="">关于盖帽网</a><a href="">新浪微博</a><a href="">联系我们</a><a href="">官方博客</a><a
				href="">淘同款</a><a href="">网站地图</a>
		</div>
		<div id="copyright">Copyright &#169 2009-2012 taotaosou.com
			浙ICP备10046883</div>
	</div>
</body>
</html>
